package com.junhong.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

//学生类
@Entity
@Table(name = "student")
public class Student implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "id")
	private Integer id;// 学号
	@Column(name = "name", length = 15)
	private String name;// 学生名字
	@Column(name = "sex", length = 2)
	private String sex;// 性别
	@Column(name = "classs", length = 15)
	private String classs;// 班级
	@Column(name = "birth", length = 10)
	private String birth;// 出生年月
	@Column(name = "phone", length = 12)
	private String phone;// 电话
	@Column(name = "mail",length = 25)
	private String mail;// 邮箱

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getClasss() {
		return classs;
	}

	public void setClasss(String classs) {
		this.classs = classs;
	}

	public String getBirth() {
		return birth;
	}

	public void setBirth(String birth) {
		this.birth = birth;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public Student(Integer id, String name, String sex, String classs, String birth, String phone, String mail) {
		super();
		this.id = id;
		this.name = name;
		this.sex = sex;
		this.classs = classs;
		this.birth = birth;
		this.phone = phone;
		this.mail = mail;
	}

	public Student() {
		super();
	}

}
